set(LOCAL_MODULE libbt-brcm_bta)

set(LOCAL_SRC_FILES 
    ./dm/bta_dm_ci.c 
    ./dm/bta_dm_act.c 
    ./dm/bta_dm_pm.c 
    ./dm/bta_dm_main.c 
    ./dm/bta_dm_cfg.c 
    ./dm/bta_dm_api.c 
    ./dm/bta_dm_sco.c 
    ./gatt/bta_gattc_api.c 
    ./gatt/bta_gatts_act.c 
    ./gatt/bta_gatts_main.c 
    ./gatt/bta_gattc_utils.c 
    ./gatt/bta_gattc_ci.c 
    ./gatt/bta_gatts_api.c 
    ./gatt/bta_gattc_main.c 
    ./gatt/bta_gattc_act.c 
    ./gatt/bta_gattc_cache.c 
    ./gatt/bta_gatts_utils.c 
    ./hf_client/bta_hf_client_act.c 
    ./hf_client/bta_hf_client_api.c 
    ./hf_client/bta_hf_client_main.c 
    ./hf_client/bta_hf_client_rfc.c 
    ./hf_client/bta_hf_client_at.c 
    ./hf_client/bta_hf_client_sdp.c 
    ./hf_client/bta_hf_client_sco.c 
    ./hf_client/bta_hf_client_cmd.c 
    ./hh/bta_hh_cfg.c 
    ./hh/bta_hh_act.c 
    ./hh/bta_hh_api.c 
    ./hh/bta_hh_le.c 
    ./hh/bta_hh_utils.c 
    ./hh/bta_hh_main.c 
    ./pan/bta_pan_main.c 
    ./pan/bta_pan_ci.c 
    ./pan/bta_pan_act.c 
    ./pan/bta_pan_api.c 
    ./hl/bta_hl_act.c 
    ./hl/bta_hl_api.c 
    ./hl/bta_hl_main.c 
    ./hl/bta_hl_utils.c 
    ./hl/bta_hl_sdp.c 
    ./hl/bta_hl_ci.c 
    ./sdp/bta_sdp_api.c 
    ./sdp/bta_sdp_act.c 
    ./sdp/bta_sdp.c 
    ./sdp/bta_sdp_cfg.c 
    ./sys/bta_sys_main.c 
    ./sys/bta_sys_conn.c 
    ./sys/utl.c 
    ./jv/bta_jv_act.c 
    ./jv/bta_jv_cfg.c 
    ./jv/bta_jv_main.c 
    ./jv/bta_jv_api.c
)

if (SUPPORT_AUDIO)
set(LOCAL_SRC_FILES 
	${LOCAL_SRC_FILES}
    ./av/bta_av_act.c 
    ./av/bta_av_ci.c 
    ./av/bta_av_api.c 
    ./av/bta_av_aact.c 
    ./av/bta_av_main.c 
    ./av/bta_av_cfg.c 
    ./av/bta_av_ssm.c 
    ./av/bta_av_sbc.c 
    ./ag/bta_ag_sdp.c 
    ./ag/bta_ag_sco.c 
    ./ag/bta_ag_cfg.c 
    ./ag/bta_ag_main.c 
    ./ag/bta_ag_api.c 
    ./ag/bta_ag_rfc.c 
    ./ag/bta_ag_act.c 
    ./ag/bta_ag_cmd.c 
    ./ag/bta_ag_ci.c 
    ./ag/bta_ag_at.c 
    ./ar/bta_ar.c 
)
endif (SUPPORT_AUDIO)

include_directories(
	$(CMAKE_CURRENT_SOURCE_DIR)/include 
	$(CMAKE_CURRENT_SOURCE_DIR)/sys 
	$(CMAKE_CURRENT_SOURCE_DIR)/dm 
	$(CMAKE_CURRENT_SOURCE_DIR)/hh 
	$(CMAKE_CURRENT_SOURCE_DIR)/../ 
	$(CMAKE_CURRENT_SOURCE_DIR)/../btcore/include 
	$(CMAKE_CURRENT_SOURCE_DIR)/../gki/common 
	$(CMAKE_CURRENT_SOURCE_DIR)/../gki/ulinux 
	$(CMAKE_CURRENT_SOURCE_DIR)/../hci/include 
	$(CMAKE_CURRENT_SOURCE_DIR)/../include 
	$(CMAKE_CURRENT_SOURCE_DIR)/../stack/include 
	$(CMAKE_CURRENT_SOURCE_DIR)/../stack/btm 
	$(CMAKE_CURRENT_SOURCE_DIR)/../osi/include 
	$(CMAKE_CURRENT_SOURCE_DIR)/../udrv/include 
	$(CMAKE_CURRENT_SOURCE_DIR)/../vnd/include 
	$(CMAKE_CURRENT_SOURCE_DIR)/../utils/include 
	$(bdroid_C_INCLUDES) 
)

add_library(${LOCAL_MODULE} ${LOCAL_SRC_FILES})
set_target_properties(${LOCAL_MODULE} PROPERTIES PREFIX "")
target_link_libraries(${LOCAL_MODULE} libbt-brcm_stack)

